import { reactive } from "vue";

// src/router/menuList.ts
export const menuList = reactive([
    // 商城模块
    {
      path: "/mall",
      component: "Layout",
      name: "mall",
      meta: {
        title: "商城模块",
        icon: "Shopping",
        roles: ["sys:mall"]
      },
      children: [
        {
          path: "/mall/home",
          component: "Layout",
          name: "mall-home",
          meta: {
            title: "商城首页",
            icon: "HomeFilled",
            description: "展示精选商品、最新款式和合作信息。通过滑动屏幕和分类筛选，用户可以轻松浏览和搜索到感兴趣的商品。",
            roles: ["sys:mall"]
          }
        },
        {
          path: "/mall/product",
          component: "Layout",
          name: "mall-product",
          meta: {
            title: "商品详情",
            icon: "Product",
            description: "提供商品的详细信息，包括商品介绍、用户评价、种植方式、销量等。用户可以在此页面查看商品的规格、价格、库存情况，并可以选择加入购物车或直接购买。",
            roles: ["sys:mall"]
          }
        },
        {
          path: "/mall/account",
          component: "Layout",
          name: "mall-account",
          meta: {
            title: "我的账户",
            icon: "UserFilled",
            description: "提供用户账户管理功能，包括查看我的订单、足迹、优惠券、收藏和账号信息等。",
            roles: ["sys:mall"]
          }
        },
        {
          path: "/mall/cart",
          component: "Layout",
          name: "mall-cart",
          meta: {
            title: "购物车",
            icon: "Cart",
            description: "展示用户已加入购物车的商品信息，包括商品名称、规格、数量、单价、库存状态、优惠信息等。",
            roles: ["sys:mall"]
          }
        }
      ]
    },
    // 农教模块
    {
      path: "/agri-edu",
      component: "Layout",
      name: "agri-edu",
      meta: {
        title: "农教模块",
        icon: "Expert",
        roles: ["sys:agri-edu"]
      },
      children: [
        {
          path: "/agri-edu/expert",
          component: "Layout",
          name: "agri-edu-expert",
          meta: {
            title: "专家库",
            icon: "Setting",
            description: "提供专家信息、专家评分和专家热度等内容。用户可以通过搜索或浏览方式查找感兴趣的专家。",
            roles: ["sys:agri-edu"]
          }
        },
        {
          path: "/agri-edu/science",
          component: "Layout",
          name: "agri-edu-science",
          meta: {
            title: "科普信息",
            icon: "ChatDotSquare",
            description: "提供科普视频、种植指导视频和热点关注视频等内容。用户可以通过分类浏览或搜索方式查找感兴趣的科普信息。",
            roles: ["sys:agri-edu"]
          }
        },
        {
          path: "/agri-edu/ai",
          component: "Layout",
          name: "agri-edu-ai",
          meta: {
            title: "AI助手",
            icon: "Message",
            description: "提供智能问答、知识科普、学习引导和互动反馈等功能。用户可以通过输入问题或关键词获取相关答案和建议。",
            roles: ["sys:agri-edu"]
          }
        }
      ]
    },
    // 社区模块
    {
      path: "/community",
      component: "Layout",
      name: "community",
      meta: {
        title: "社区模块",
        icon: "ChatLineSquare",
        roles: ["sys:community"]
      },
      children: [
        {
          path: "/community/topics",
          component: "Layout",
          name: "community-topics",
          meta: {
            title: "话题",
            icon: "ChatDotSquare",
            description: "提供热门话题榜单、发表话题和搜索话题等功能。用户可以通过浏览热门话题榜单了解当前社区热点。",
            roles: ["sys:community"]
          }
        },
        {
          path: "/community/interaction",
          component: "Layout",
          name: "community-interaction",
          meta: {
            title: "互动评价",
            icon: "Star",
            description: "提供发表、评价、点赞和收藏等功能。用户可以在话题页面发表自己的观点和看法。",
            roles: ["sys:community"]
          }
        },
        {
          path: "/community/user",
          component: "Layout",
          name: "community-user",
          meta: {
            title: "用户主页",
            icon: "User",
            description: "展示用户的分享内容、动态和关注等信息。用户可以在自己的主页查看和管理自己的分享内容。",
            roles: ["sys:community"]
          }
        }
      ]
    }
  ])